Java game programming preliminary