Now I understand why games take years to make, gamedev is not for the weak.
These are the pains of learning but now I believe very in-depth planning is the key to make development proceed smoothly. Ideally you should have the whole game planned out start to finish.