Action Recognition Framework written entirely in Prolog