finished to implement recursive  Board solver. still to implement iteratively