public BlockMap(String ref)throws SlickException{
        entities = new ArrayList<Object>();
        tmap = new TiledMap(ref, "res");
        mapWidth = tmap.getWidth() * tmap.getTileWidth();
        mapHeight = tmap.getHeight() * tmap.getTileHeight();
        
        for(int x = 0; x < tmap.getWidth(); ++x)
        {
            for(int y = 0; y < tmap.getHeight(); ++y)
            {
                int tileID = tmap.getTileId(x, y, 0);
                if(tileID == 1)
                {
                    entities.add(new Block(x * 16, y * 16, square, "square"));
                }
                
            }
        }
    }