Simple game developed in java