Can set board size from input. Refine functions.

Using malloc at all times to enable user input board size.