Java based game engine