Populated the StateRepresentation class and merged with the TAMER framework. Not tested, possibly contains bugs.