Currently it's based on how many times the ball hit the paddle, but the actual game bases it off how many times it's hit the top wall. Need to figure out the thresholds etc for increasing speed