Implemented pause menu

And fixed misc. gui bugs