Rewrote flood fill algorithm. Closes #57 @1h.