4 corners recursion