added pause function.
add quit game function.