public void setRange(Map m)
	{
		tilesInRange = new ArrayList<Tile>();
		Tile[][] grid = m.getGrid();
		//grab which tiles are in range
		int xMin = location.getX() - attacks.get(0).getHorizontalRange();
		int xMax = location.getX() + attacks.get(0).getHorizontalRange();
		int yMin = location.getY() - attacks.get(0).getVerticalRange();
		int yMax = location.getY() + attacks.get(0).getVerticalRange();
		int x;
		int y;
		
		//Calculates range boundaries, based on attack range and map boundaries
		if(xMin <0)
		{
			xMin = 0;
		}
		
		if(yMin < 0)
		{
			yMin = 0;
		}
		
		if(xMax > m.getWidth())
		{
			xMax = m.getWidth();
		}
		
		if(yMax > m.getHeight())
		{
			yMax = m.getHeight();
		}
		//Adds tiles in range to the range array
		for(x = xMin; x <= xMax; x++)
		{
			for(y = yMin; y <= yMax; y++)
			{
				if (x < m.getWidth() && y < m.getHeight()) {
					tilesInRange.add(grid[x][y]);
				}
			}
		}
		
	}