Add cap to speed in collisionMoveResult

Add a cap of speed to collisionMoveResult (only values between -5000 and 5000 allowed) for avoiding hangs.