bug fixes and basic main that prints the board