Changed the function that creates the numbers so that it caters for a hover state. Also moved into its own function