Make main frame and game frame reasonable size.