refactoring gameplaye.js. Player.move added