Commiting Refactored TennisGame1.js