Extract the actual ai
Add socket-io hooks for building a visualisator in the browser