debugged tilecoding with hashing