i set the player.x and player.y and monster still go out of the screen and don't come back..!