Debugging

Added missing comparisons for my while() conditionals