Added symbol and number logic to logic.php