A Java two dimensional game engine