added Player movement constraints