Create ErrorCheck.java
Update solveCube.java
Merge pull request #11 from acjense2/ErrorCheck

Error check