private void GoalCheck(Position lastMove) { if (GlobalSettings.GOAL_RIGHT.Contains(lastMove)) { BallModel.Instance.CurrentPosition = GlobalSettings.BALL_CENTER_RIGHT; firstTeam.AfterGoal(true); secondTeam.AfterGoal(false); } else if (GlobalSettings.GOAL_LEFT.Contains(lastMove)) { BallModel.Instance.CurrentPosition = GlobalSettings.BALL_CENTER_LEFT; firstTeam.AfterGoal(false); secondTeam.AfterGoal(true); } }