add update_purchase function
add update purchase function when clicking play button, fixes issue #117
add user logged in check
add conditional install/play button on game detail page
refactor and fix code
fixes #117
Merge pull request #140 from scottmeng/play-button-game-detail-page

Record play when a user clicks "Play" from a game detail page