avoid spawning the player in water
collect input in Input class
cleanup indentation