compiles in plan9, but there is an infinite loop when marking a square