Finished coding the beta

First beta is finished.
Added caching
TODO: more editing capabilities for a brick.type