Fixed up Cube Class

added methods to the cube class, and fixed a couple things