Added Di's KMeans algorithm and fixed socket communication bugs for player 1