created var for amount of star cards registered
created function argument
created function parameters
created function math and return
created if
created else if
created else
comments added and an alert at the beginning