cards_mgmt function headers

Added function headers for each function.  Also now will delete games
that have been inactive for longer than 2 days.