Simply finish the painting functions. Work out the algorithm and firstly create the data structures that will be used in collections.pas and core.pas