fixed end case
Merge branch 'master' of https://github.com/BUhacksMIT/codegame