Update decodeWays