private MapSquare getMapSquare(int x, int y)
	{
		ArrayList<MapSquare> d_map = dp.getDisplay();
		for (int i = 0; i < d_map.size(); i++)
		{
			//find which square was clicked
			if(d_map.get(i).getDisplayX() * GlobalSettings.SQUARE_SIZE <= x &&
					d_map.get(i).getDisplayX() * GlobalSettings.SQUARE_SIZE + GlobalSettings.SQUARE_SIZE >= x &&
					d_map.get(i).getDisplayY() * GlobalSettings.SQUARE_SIZE <= y &&
					d_map.get(i).getDisplayY() * GlobalSettings.SQUARE_SIZE + GlobalSettings.SQUARE_SIZE >= y)
			{
				return d_map.get(i);
			}
		}

		return null;
	}