a simple game engine written in java