added comments for gameplay js