Adding the socket server for the snake