Fixed some indexing problems for the main board in Graphics.