fix the board
fixed 4 rules work
added case for test
merging board.js