buggy refactored code
Corrected issues with limiting available moves. Basic game functionality tested