Rewrite checkcompleteboard to work with multiple solutions