Adding in the boundaries fixed the blinking, currently adding in the stop code