Rotaing cube function meh.