a simple java game