implement atari calculation