Moved grid code into sperate file