public static bool IsDirectlyWinnableOnTileForPlayer(Game.Board board, Game.Tile tile, Object player) { //Get all the tile connections on this given tile. var connections = board.GetAllTileConnectionsForTile(tile.ColumnNo, tile.RowNo); //check each of them for a win, and return true if any of them is a winning connection var directlyWinnable = new List<Tile>(); foreach (TileConnection tc in connections) { if (tc.WillTokenPlacedWinGameForPlayer(player,tile)) { return true; } } return false; }