Changed render function and how the board is drawn

Instead of making the htmlstring directly the tile
properties are now given into a two dim. array.
Added tests to make sure the tiles get the right modifier.