have implemented shouldmove and shadowmap but its not working yet