Implemented main menu loop, proper output.