Changed collides to const function

Changed collides to const function.