Edited rotate

Made the code for rotating the camera a lot smaller.