Program complete, problems existed with using == instead of .equals()