Game Programming in Prolog