Adding escape button press to GUI, and fixing begging