Add state reference to UIComponent, add Map and Tile class, reverse x and y in map