Fleshed out character detection method
Reworked detect character algorithm