Cheat codes work better

Moved a brace, solved problems