Changed collision detection; made it impossible to go outside the screen