function to check outer area completed