fixed m=0 with if statement to fix left and right terrain splosions, rolled back to before i declared memory at the start