Update main.rb

Fixed Bug in Favorites. Not entering anything when adding a favorite resulted in adding blanks to favorites list.