added functionality to movePlayer and created function called updatePlayer which updates the position of the player based off of the button pushed