started improving cube selection

Still some bugs, it should only select edges but it doesn't. Also still
need to implement that the grid matrix changes when a cube is deleted.