Railfence - Decrypt Function Fix

Needs testing