added BFS-function to test if the board is blocket