split method

made deck class