assuming buttonPressed is always set, otherwise errorpage, assuming buttonPressed = "go" but only considering "left"