Rewrote logic to keep track of a match progress - It compiles... Not tested