Implemented flood fill algorithm and some simple primitives - WIP.