The player stays in the screen.

Added blocks around the edges to prevent the player from escaping.