fixed bug with roles of players voting not matching their player role
and added some comments for clearity