Minor: small game with "try-with-resources" statement