Update tilestate.py