board glitch or faulty coding? [solved]