In case you want it to allow diagonals as well, b&&(b%2) that is