fix game going out of negative boundaries