Simple Game in java