refactored
getTopCard readded
getTopCard readded
tests added