Basic Java game