Game pause

Added pause management. Works with minor bug.