I don't have time to try your code right now, but you have KX0/KY0 (zero) in line 9 and KXO/KYO (capital o) in line 23. Also in line 23 it should be != and not !==