AI & Socket programing for autonomous gameplay