Now checks for collision.