started the TTT logic and fixed ghosting glitch