2D game using Java