Simple game in JAVA