Fixed UI errors and quitting game by accident errors