private void OnSectorMouseClick(object sender, MouseEventArgs e) { if (IsBallNotSector) { return; } Sector sector = (Sector)sender; if (e.Button == MouseButtons.Left) { sector.TurnLeft(); } if (e.Button == MouseButtons.Right) { sector.TurnRight(); } int currentMaxScore = ScoreLogic.GetUpdatedMaximumScore(); Game.ChangeScoreForAllPlayers(); ShowScoreForAllPlayers(); if (currentMaxScore >= Constants.WIN_SCORE) { SomeoneWins(currentMaxScore); } if (Game.HasNoWhiteBalls()) { GameOver(); } sector.Game.SetNextPlayerIndex(); lblActivePlayer.Text = OnscreenText.PlayerName(Player.GetActivePlayer().Name); label_hint.Text = OnscreenText.ChooseBall; IsBallNotSector = true; }