refactor player and game class to utilize iterators