Made guess feedback function

instead of repeating it