Added some code to support states

Added some code to support states and started work on listeners
Continued to work on states and listners
Cleaned up the code for states/listeners

Pause menu is now functional.
Replaced StateAttach/StateDetach functions

Replace StateAttach/StateDetach functions in game states with initialize
and cleanup