Code Golf: http://codegolf.stackexchange.com/questions/26232/create-a-flood-paint-ai
Cleanup. Tests.
Code Golf: http://codegolf.stackexchange.com/questions/26232/create-a-flood-paint-ai
Solving optimally. Random crashes. Assuming memory issue.