made NineManMorris.js code into single object since this class is focused on object oriented design