example main method for rotating sprites