added move to the string class to handle potential exceptions
fixed checkmate