function exit_game
{
exit;
}

wherever you want, just call the "exit_game();" function


"Sometimes JCL reminds me of Notch, but more competent" ~ Kiyaku