Java game programming test