added classes and tests for game and frame