I am also a noob, so take this with a grain of salt, but I believe your plant started to flower because it was put out a little too early, and then as the days got longer it realized that it should go back to vegging. If you are at 13 hours of sunlight by the end of July, your plant is gonna...