Implementation repeat play and change direction flags. close #15