Fixed an issue with calculation of how many stars should be lit up.