moved rect to parent GameObject and created arrays for bullets and enemies to check