Added direction parameter to player.move