Changed logic for checking cells so we only check if it's unexplored