Fixed the logical error, working now