made rudimentary cube rotation algorithm