Handles negative values now, need to handle floating point results in order to solve the test example correctly
Fixed bug that could've resulted in multiple unexpected matches