Also at high school a friend of his father gave him a mechanical device with switching circuits that could play nim and other games

Please fix the punctuation.
Also at high school a friend of his father gave him a mechanical device with switching circuits that could play nim and other games.