updateBoard changed to work with a main class, small changes on isSpaceTaken