added cheat-detection code, although it's currently inactive