Caused some errors, fixed them and added methods in ProjectileFactory and SpaceshipFactory