Implemented robot rule matching, further tests required