Added a rendering loop in Main.java and a simple rendering test.