Completed practical 5. Implementing AI

Signed-off-by: UltimateGoDLikE <lohtonghong@hotmail.com>