let block1 = Block()
world.place (block1, atColumn: 3, row: 3)
while !isOnClosedSwitch {
if !isBlocked {
moveForward()
}
if !isBlockedLeft {
turnLeft()
}
if !isBlockedRight {
turnRight()
}
}
toggleSwitch()
let block1 = Block()
world.place (block1, atColumn: 3, row: 3)
while !isOnClosedSwitch {
if !isBlocked {
moveForward()
}
if !isBlockedLeft {
turnLeft()
}
if !isBlockedRight {
turnRight()
}
}
toggleSwitch()