Simple Java 2D game engine