public void CheckVictory(Player player, MainWindow window) { if (player.Position == Board.Tiles.Length - 1) { MessageBox.Show("Player " + player.Name + " has won the game!", "GAME OVER"); window.Close(); } }