Fix some bugs and add Pause and Game Over Dialog