Add frame generating functions to some classes and create main layout for the game