removed unnecessary global variable

The global variable `display` in `event.cpp` was unnecessary and because global variables are "bad" (side effects and all) I simply removed it.