Changed game function structure a little bit, added modifypercentage function