Corrected some graphics features and changed some logics functions