Extracting rules ns
Adds main game loop