Quick 2D Java snippet to write a game. By request.