added global compare() function
created friendship between class command_line and command_level
extended implementation of class command_line