Logic.java added Repeat

Repeat method added to Logic Class with comments