Fixed bug with calculating colours that prevented all the stars from showing. Added more logging functions (hacky)

Fixed the colour calculation to show correct values. Added more logging
functions which log to the screen when used, this allows more accurate
debugging when required.