helper function to pop up a modal dialog over the game