Restructure as java project. Package hierarchy, java/resource/textures, and main/test separation