Made function for moving in player.java
Made functions in main