Changed so that Java and Openfl use the same Main class.