Added logic for StateProcessor, Added KeyData

Added some of the basic functionality for StateProcessor, Added KeyData
class. StateProcessor doesnt take into account missiles atm.