Fixed bugs, and changed white to be on the correct side.