break out common actions into functions
change chip's direction even if walking into wall