Router.php

Bug in ln:37, loop needs to be improved.