Started implementing the AI