Added a set_up_player function.