Splitting main method from Game frame.