- re-implementation of the AI