 // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 //
 
-import UIKit
-
-//
-//  TMXParser.swift
-//  Bump
-//
-//  Created by Kim Pedersen on 27/10/2015.
-//  Copyright © 2015 twoFly. All rights reserved.
-//
-
 class TMXParser: NSObject {
     
     // MARK: TileFlipped flag enum

                x: CGFloat(Int(x)!),
                y: size.height - CGFloat(Int(y)!)
            )
            object.position.y += object.size.height * 0.5
        }
        
        // A reference to a tile gID

    /// An array of object groups
    lazy var objectGroups = [TMXObjectGroup]()
    
    /// An array of image layers
    lazy var imageLayers = [TMXImageLayer]()
    
    
    // MARK: Private properties for handling internal state
    
    fileprivate enum ParsingElementType: Int {
        case invalid, none, map, layer, data, objectGroup, object, polygon, polyline, property, animation, frame, imageLayer, image
        
        init(type: String) {
            switch type.lowercased() {
