Simple game in java