dont allow diver to go beyond boundaries