Implementing the famous 4 in a row game using javascript,angularjs , socket.io