Basic Java graphics game