Self playing Tetris implemented in Caml