cleaning up Robot drawing code