started to set up a tick function and setting up an actual network of nodes