it removes any previously clicked first and then sets the current click to true. So it doesn't pick the wrong button