The function board_is_move_legal seems to be completed. Now start the fun to test and debug it.