public GameMap(Class<?> clazz, String path, int x, int y) throws IOException
	{
		this.amountOfFloorTiles = 0;
		
		InputStream is = clazz.getResourceAsStream(path);
		InputStreamReader isr = new InputStreamReader(is);
		BufferedReader br = new BufferedReader(isr);
		
		String strLine;
		List<String> lines = new ArrayList<String>();
		
		while((strLine = br.readLine()) != null)
		{
			lines.add(strLine);
		}
		
		//find widest line
		int width = 0;
		for(String line : lines)
		{
			if(width < line.length())
			{
				width = line.length();
			}
		}
		
		tiles = new char[lines.size()][width];
		
		//populate tiles
		//rows
		for(int r = 0; r < lines.size(); r++)
		{
			char[] chars = lines.get(r).toCharArray();
			//columns
			for(int c = 0; c < chars.length; c++)
			{
				tiles[r][c] = chars[c];
			}
		}
		
		this.x = x;
		this.y = y;
		
		this.orig_x = x;
		this.orig_y = y;
	}