refactors to use inheritance for the game and controller, as well as an NSArray category helper for checking if all values are equal