Fixes endDate not being set when game is ended.

Author: nfbrown