public Tile[,] getNonaTileFromGamePosition(GamePosition pos) { Tile[,] nonaTile = new Tile[3, 3]; nonaTile[0, 0] = getTileFromGamePosition(pos.add(new Vector2(-1, -1))); nonaTile[1, 0] = getTileFromGamePosition(pos.add(new Vector2(0, -1))); nonaTile[2, 0] = getTileFromGamePosition(pos.add(new Vector2(1, -1))); nonaTile[0, 1] = getTileFromGamePosition(pos.add(new Vector2(-1, 0))); nonaTile[1, 1] = getTileFromGamePosition(pos.add(new Vector2(0, 0))); nonaTile[2, 1] = getTileFromGamePosition(pos.add(new Vector2(1, 0))); nonaTile[0, 2] = getTileFromGamePosition(pos.add(new Vector2(-1, 1))); nonaTile[1, 2] = getTileFromGamePosition(pos.add(new Vector2(0, 1))); nonaTile[2, 2] = getTileFromGamePosition(pos.add(new Vector2(1, 1))); return(nonaTile); }