Slight modification to Player.cpp