changed mainactivity to the right version
added rating function in finishmatchactivity