Revert "Added extremely simple logic to solve the problem. Known problem when you"

This reverts commit 9448d80a74fe51eb81b5e7ecd109bad9fda46992.