printing board using integer mask

instead of using .db, now we can use three integers to describe the state of the board!