Update player.js

refactored the moveStart function