Implemented the tick function within windows class but it is too slow. This is because of how ocaml classes work. Might have to take the neighbours method out of the class in order to speed it up.