added logic for a wrong guess and a prompt output