Avoiding the Black areas

This code will move the board based on the player press of wasd.
It will also not allow the player to enter a black area

Check your understanding

What happens if you draw the player first and then the background?