modified the solver so that it doesn't store the board in its class