How to prevent the stack pass when going for the triangle