Board size handling update

Board can now be initialized, resized and destroyed without memory leaks