Added rotate() function to simulation