adding method positionFree to gameOfLife.js