Forgot to change != to == when I swapped the if/else blocks