added a function to generate a popup in the center

Created a function that displays a popup in the center (tested by calling it in the paint function, it works). Addresses issue #16 to some degree