Added something to catch the first illegal move
Added something to catch the first illegal move