Computer play 2 or 4 randomly.
Simplify logic around colors.
Simplify decisions around KeysReleased.