updated player to change sprite when moving