Changed most (maybe all) pointers of things to shared pointers
Helps to solve memory leaks

Signed-off-by: BunnyRabbit2 <iamlewisstorey@yahoo.com>