Forgot to close the input stream
First attempt at Cat vs. Dog problem - Wrong answer