move board-changing functions to BW.hs