Scenes are now connected together; Fixed memory leaks