Add State class

Add State class along with tests. This class manages the state in the form
of a stack of Enums. Refactor Player to use this class. Get rid of
Player's getContact method.