Precondition and Postconditions added for player.cpp