solving while flipping problem solved. Full stop control added