handled controls and spawning of calcs
fixed the color changes and spawning of calcs