Added tile loading code