Added statistic generating methods to gamestate, fixed some bugs.