A simple game engine done in java