fix bugs on Diagonal moves and Undo Boards