Updated Logic.java -- repeat method

repeat method updated. Changed the repeat check to implement .equals() instead of !=