create main.java

The main class, contains the game loop.