Why is it that my if statement keeps returning false when it is actually true? It keeps returning O regardless.