cube rotates with mouse input