added winning and loosing messages and better code comments