Cleaned up board rendering code