refactor api calls to services.js
clear everything up after phrase guessed