Implemented collision detection and resolution and modified cube generation so that cube vertices are generated in regards to the corner and not the center.