added logic to turn robot left/right