simple game created in java