put in cases for pushing the right and left buttons along with the resets if they go outside the boundary