Implementation of various AI algos