added in check for colliding with player