implemeted upto state 10 on the scanner. 32 states to go