update player before map