first variable was not getting initialized
removed unneccessary gotoxy to fix underscore