Invisible walls,to prefent the player from going outside the screen, are placed, taking screen size in consideration