Move sprite comparator logic out of BaseDemo
Move terrain dragging into BaseDemo