changed way to count chips