Added direction value to Player.js