Fixed silly mistakes such as char comapre to string error, switched all modulos to division. Very silly mistakes.