almost working, get stuck in a corner