Refactored flip() function to be in hand.js and what arguments dealHandTo takes (changed to player instead of hand to keep code DRY