Some (somewhat nazi) code styling
Added tile.js
Grid.js and a lot of refactoring