Write grid render
Enable pattern loading
Enable animation
Clean up code