updated set_board to handle ints and string correctly