Moving the player before checking collision so it looks better