Implementation of an agent for the TAC classic game