Fixed bug that caused the cube to become all white in the case that no button was pushed by putting the for loop that writes cube colours inside if statement that only executes when a cube rotation has been executed.