public static ArrayList<Tile> getTileNeighbors(Tile t, Tile[][] tiles, int size){
		ArrayList<Tile> neighbors = new ArrayList<>();

		int xStartIndex = t.getX() - 1 < 0 ? 0 : -1;
		int xEndIndex = t.getX() + 1 >= size ? 0 : 1;
		int yStartIndex = t.getY() - 1 < 0 ? 0 : -1;
		int yEndIndex = t.getY() + 1 >= size? 0 : 1;

		for (int x = xStartIndex; x < xEndIndex + 1; x ++)
			for (int y = yStartIndex; y < yEndIndex + 1; y ++)
				if ( x == 0 && y == 0)
					continue;
				else
					neighbors.add(tiles[x + t.getX()][y + t.getY()]);



		return neighbors;
	}