The game of Nim for Principles and Software Engineering