border detection in playerPhysics