refactored code to pass tests for paper within game