Cleaned up chess piece painting code