Added 0,-1 check to do_flip_wrapper, and fixed typo in board.h