How to hide and show player in board?

Hi,
I have a problems in my game like monopoly.
I created the board and the players inside the setup and did the sprite in the draw. The problem is that every time I launch the data, the player is visible in the position of the data numbers. to solve the problem I tried to create a function that overlaps the board with each click on throwing dice but this creates problems afterwards when creating the leaderboard because they overlap the elements above the leaderboard.

Is there a better way to do this process of switching from visible to invisible players?

When this is a 2D game the order in which you draw matters.

Draw board then draw the players

When you want to show your leader board set a flag to true indicating this.

Now make a if clause with the flag around the part where you display the players. And don’t show the players when your flag is true