Use p1 instead of player1. in addToGame, fix whitespace