Added revertBoard function. Added more test cases