Implemented the game framework