removed bin and added new functions to checkCards