Moved getting of score out of render for efficiency - this needs to be done only once, not once every frame.