More rendering stuff. Added tile type to tile