update tile collision code