implemented return tilestate