almost done with player.cpp