Added flipping of coins
added write mutex boolean, so cheating is impossible