Change object names in functions

You don't. You're already passing the servo number to the function. Use that to decide which servo object to move.