Implementation of coin flip onClick.

Cleaned out some old code, added new function for coin flips just in
case it is needed. Added onClick intercept using jQuery.