         return backgroundNode
     }
     
-    func createPlayer() -> SKNode{
-        var playerNode:SKNode = SKNode()
+    func createPlayer(){
         // Set the position
         playerNode.position = CGPointMake(CGFloat(160), CGFloat(80))
         

        var backgroundNode = self.createBackground()
        self.addChild(backgroundNode)
        
        var player = self.createPlayer()
        foregroundNode.addChild(player)
        
        // Create tap to Start
        self.createTapToStart()
        self.addChild(hudNode)
        
        // Add gravity
        self.physicsWorld.gravity = CGVectorMake(CGFloat(0), CGFloat(-0.2))

var foregroundNode: SKNode = SKNode()
// Hud node
var hudNode: SKNode = SKNode()
// Player node
var playerNode:SKNode = SKNode()

class GameScene: SKScene {
    init(size: CGSize) {
