added new onInitialized virtual method to SKState that will be called as soon as the machine and context are set by the machine