getting wa for cases … but correct for sample case
@imavneet there is mistake in line 56, it should be board[u]-= (u-v);