finished checkneighbor functions basic rules. will need to extract functionality later to allow for changing/different rules from command line.