added some code for stats screen (not complete!)