Refactor project rules to a new class. Change frame rate to take account of rendering time. Refactor rules functions.