Corners

I worked on the greedy approach part, but yours seems better than mine
so I threw it out.  I also made the AI always take corners.