Change condition in check_collision.