generating equations and keeping score of game