scoring and the transitionend event work now
main functionality rewritten