Create Flatspace.java

This is the main class of the program