deleting old states, switched to uints and transferring movement