Started coding the board_is_move_legal function.