Chance by weight
divide by zero bug fixed
Merge remote-tracking branch 'origin/pnw'

Conflicts:
	main.c
light fix