Have to change the === 1 comparison to > 0, and === -1 with < 0