Added Tile IDs

Also made solid() work
Improved random level generation

Also started using new tile id references