Updated player.cpp