this is a simple check all four corners and move there algorithm