Grab the gameSize passed into the Player constructor, and make it an instance variable.  Then use it in update to decide whether the player can move any farther left/right.