Useful bits of code when working with SpriteKit