Simple game to train myself in java