* Added simple sorting for tile drawing
  * restored event handlers