Octagon Color Pong

Change the colors of the sides of the octagon (control: Z X C , .).
The balls bounce the same color as the side of the octagon will get 3 points (good collision). When these colors will be different - you lose 1 point.
Bonuses:
- good collision in the interval to 0.25 seconds gives 50 points and 6s,
- good collision with an interval of 0.26-0.5s gives 20 points and two seconds per game.
No good reflections for 5s - loss of one ball.
Controls: keyboard: Z X C , . (5 keys).