Incorporating tristop in the algorithm
Made some styling changes