Added exceptions for the set_piece function in board.h