Added support for tile collision.