-Added non-guessing solve function