Added defines for LIVING and DEAD. Factored out some common code to handle touch events. Condensed the meaning of life into one line. Renamed a function to make it more obvious what it returns.