updated drawmap and var tile